Skip to content

Conversation

pomber
Copy link
Contributor

@pomber pomber commented May 8, 2025

Now, regex in annotation ranges allow escaped [] and ().

So it supports cases like this:

```jsx
// !Fold[/className="([^"]+)"/g]
function Foo() {
  return (
    <div className="bg-red-200 opacity-50">
      <span className="border">hey</span>
    </div>
  )
}
```

Copy link

vercel bot commented May 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
codehike.org ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 8, 2025 11:50am

@github-actions github-actions bot added the changeset PR including changesets label May 8, 2025
Copy link
Contributor

github-actions bot commented May 8, 2025

Try codehike from this pull request in your project with:

npm i https://pkg.pr.new/codehike@515

@pomber pomber merged commit eb1a4ba into next May 8, 2025
4 checks passed
@github-actions github-actions bot removed the changeset PR including changesets label May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant